package com.zhdl.common.protal;

import cn.hutool.json.JSONUtil;
import lombok.Data;
import lombok.experimental.Delegate;

import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: zhangyy
 * @Email: zhang10092009@hotmail.com
 * @Date: 2022/5/16 17:28:41
 * @Version: v1.0
 * @Modified：校验集合
 * @Description:
 */
@Data
public class ValidationList<E> implements List<E> {
    @Delegate
    @Valid
    public List<E> list = new ArrayList<>();


    @Override
    public String toString() {
        return JSONUtil.toJsonStr(this);
    }
}
